package com.bcxj.internalcommon.util;

import com.fasterxml.jackson.annotation.JacksonInject;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.time.LocalDateTime;

/**
 * ClassName: RedisData
 * Package: com.hmdp.bean
 * Description:
 *
 * @Author BCXJ
 * @Create 2024/6/29 15:39
 * @Version 1.0
 * @Since 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
public class RedisData<T> {
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSSSS")
    private LocalDateTime expireTime;
    private T data;
}
